DotNetEx Sourcecode Document  0.0.0.0
 全て クラス ネームスペース 関数 変数 列挙型 列挙型の値 プロパティ イベント グループ ページ
クラス DotNetEx.String.Extention

各種の静的な拡張メソッドや、文字列操作に関する一般的な処理を提供します。 [詳細]

Static Public メソッド

static System.String ToNestedMultilineString (this System.Exception ex)
 例外データを文字列に変換します。InnerExceptionの入れ子構造をインデント整形で表現しています。
 
static System.String ToNestedMultilineString (this System.Exception ex, System.String indentUnit)
 例外データを文字列に変換します。InnerExceptionの入れ子構造をインデント整形で表現しています。
 
static System.String ToNestedMultilineString (this System.Exception ex, System.String indentUnit, int indentDepth)
 例外データを文字列に変換します。InnerExceptionの入れ子構造をインデント整形で表現しています。
 
static System.String Repeat (this System.String src, int ct)
 文字列を繰り返す文字列を生成する [詳細]
 
static System.String Intersect (this System.String str1, System.String str2, System.StringComparison opt)
 文字列同士の共通部分(積集合)を先頭から検索して取得する [詳細]
 

説明

各種の静的な拡張メソッドや、文字列操作に関する一般的な処理を提供します。

メソッド

static System.String DotNetEx.String.Extention.Intersect ( this System.String  str1,
System.String  str2,
System.StringComparison  opt 
)
static

文字列同士の共通部分(積集合)を先頭から検索して取得する

先頭からStringComparisonで1文字ずつ比較し、一致する範囲までの長さをstr1からコピーします。

static System.String DotNetEx.String.Extention.Repeat ( this System.String  src,
int  ct 
)
static

文字列を繰り返す文字列を生成する

引数
[in]src繰り返す文字列
[in]ct繰り返す回数
戻り値
srcがnullptrまたはctがマイナスの時null。ctがゼロの時System::String::Empty。それ以外であれば繰り返した文字列。

このクラスの説明は次のファイルから生成されました: